package com.kitty.ws;

import java.util.Arrays;
import java.util.List;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class HelloWorldClient2 {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        HelloWorld client = (HelloWorld)context.getBean("client");
         
        List<String> list = Arrays.asList("one","two","three");
        String[] res = client.SayHiToUserList(list);
        System.out.println(res[0]);
        System.out.println(res[1]);   
        User u = new User();
        u.setName("u");
        u.setPassword("p");
        System.out.println(client.sayHiToUser2(u));

}

}
